flowchart TD
    step__done["_done"]:::stepStyle
    event_StopEvent(["StopEvent"]):::stopEventStyle
    step_step_one["step_one"]:::stepStyle
    event_StartEvent(["StartEvent"]):::startEventStyle
    event_LoopEvent(["LoopEvent"]):::defaultEventStyle
    event_FirstEvent(["FirstEvent"]):::defaultEventStyle
    step_step_three["step_three"]:::stepStyle
    event_SecondEvent(["SecondEvent"]):::defaultEventStyle
    step_step_two["step_two"]:::stepStyle
    event_StopEvent --> step__done
    step_step_one --> event_FirstEvent
    step_step_one --> event_LoopEvent
    event_StartEvent --> step_step_one
    event_LoopEvent --> step_step_one
    step_step_three --> event_StopEvent
    event_SecondEvent --> step_step_three
    step_step_two --> event_SecondEvent
    event_FirstEvent --> step_step_two
    classDef stepStyle fill:#ADD8E6,color:#000000,line-height:1.2
    classDef externalStyle fill:#BEDAE4,color:#000000,line-height:1.2
    classDef startEventStyle fill:#E27AFF,color:#000000
    classDef stopEventStyle fill:#FFA07A,color:#000000
    classDef defaultEventStyle fill:#90EE90,color:#000000
    classDef reactAgentStyle fill:#E27AFF,color:#000000
    classDef codeActAgentStyle fill:#66ccff,color:#000000
    classDef defaultAgentStyle fill:#90EE90,color:#000000
    classDef toolStyle fill:#ff9966,color:#000000
    classDef workflowBaseStyle fill:#90EE90,color:#000000
    classDef workflowAgentStyle fill:#66ccff,color:#000000
    classDef workflowToolStyle fill:#ff9966,color:#000000
    classDef workflowHandoffStyle fill:#E27AFF,color:#000000